<!DOCTYPE html>
<html class="x-admin-sm" lang="zh">
<head>
	<meta charset="UTF-8">
	<title>图形报表</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
	<link rel="stylesheet" href="/x-admin/css/font.css">
	<link rel="stylesheet" href="/x-admin/css/xadmin.css">
	<script src="/x-admin/lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="/x-admin/js/xadmin.js"></script>
	<!--[if lt IE 9]>
	<script src="/x-admin/js/html5.min.js" type="text/javascript"></script>
	<script src="/x-admin/js/respond.min.js"></script>
	<![endif]-->
</head>
<body>
<div class="layui-fluid">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-sm12 layui-col-md6">
			<div class="layui-card">
				<div class="layui-card-header">最新一周PV/UV量</div>
				<div class="layui-card-body" style="min-height: 280px;">
					<div id="main2" class="layui-col-sm12" style="height: 300px;"></div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--<script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>-->
<script src="/x-admin/js/echarts.min.js"></script>
<script type="text/javascript">
	// 基于准备好的dom，初始化echarts实例
	var myChart = echarts.init(document.getElementById('main2'));
	// 指定图表的配置项和数据
	var option = {
		tooltip:{
			trigger:'axis',
			axisPointer:{
				type:'cross',
				label:{
					backgroundColor:'#6a7985'
				}
			}
		},
		grid:{
			top:'5%',
			right:'2%',
			left:'1%',
			bottom:'10%',
			containLabel:true
		},
		xAxis:[
			{
				type:'category',
				boundaryGap:false,
				data:['周一','周二','周三','周四','周五','周六','周日']
			}
		],
		yAxis:[
			{
				type:'value'
			}
		],
		series:[
			{
				name:'PV',
				type:'line',
				areaStyle:{normal:{}},
				data:[120,132,101,134,90,230,210],
				smooth:true
			},
			{
				name:'UV',
				type:'line',
				areaStyle:{normal:{}},
				data:[45,182,191,234,290,330,310],
				smooth:true
			}
		]
	};
	// 使用刚指定的配置项和数据显示图表。
	myChart.setOption(option);
</script>
<script>
</script>
</body>
</html>